.context-menu {
  display: none;
  position: absolute;
  background: #f5f0e6;
  border: 1px solid #c4a87d;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.menu-item {
  padding: 8px 16px;
  background: none;
  border: none;
  color: #3d2e1e;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: #e0d5c3;
}

.float-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;/* 默认隐藏 */
}

/* 悬浮窗标题栏 */

.window-header {
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  cursor: move;/* 显示可拖动光标 */
}

/* 关闭按钮 */

.close-btn {
  float: right;
  cursor: pointer;
  font-weight: bold;
}

/* 内容区域 */

.annotation-content {
  min-height: 100%;
  outline: none;
  background: #f0e6d3;
  border-right: 1px solid #c4a87d;
  padding-right: 1rem;
  display: inline-block;/* 关键：使内容横向扩展 */
  width: auto;
  margin-top: 3em;
  text-orientation: upright;
  word-wrap: break-word;
  word-break: break-all;
}

.annotation-content p {
  margin: 0 0 0 0;
}

/* 遮罩层 */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}